package com.rw.bootdemo.repository;


import com.rw.bootdemo.pojo.User;
import org.springframework.data.repository.Repository;

import java.util.List;


/**
 * @author rabit
 */
public interface UserRepository extends Repository<User,String> {

    /**
     * ssss
     * @param u  对象
     * @return 填充的对象
     */
    User save(User u);

    List<User> findAll();

//    List<User> findByPwdAndUname(User user);
  List<User> findUserByPwdAndUname(String pwd,String uname);

  List<User> findUserByUnameLike(String uname);

  List<User> findUserByPwdLike(String pwd);

}
